import axios from '@/libs/api.request'

export class SysWelfarePercentEmployeeConfigApi {
  static get (path, params = {}) {
    return request.get(path, createGETParams(params))
  }

  static post (path, params = {}) {
    return request.post(path, params)
  }

  // 获取新增时参保区域基数配置信息列表
  static getAddModel (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeConfig/GetAddModel',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 保存员工社保参保基数配置信息(单个)
  static saveShebaoOrGongjijin (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeConfig/Save',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 保存员工社保参保基数配置信息(批量)
  static batchSaveShebaoOrGongjijin (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeConfig/BatchSave',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据ID获取员工参保基数配置信息(单个)
  static getConfig (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeConfig/GetConfig',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据ID获取员工参保基数配置信息(批量)
  static getBatchConfig (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeConfig/GetBatchConfig',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据多个员工GUID和参保类型，校验员工是否能同时设置参保信息(批量)
  static checkEmployee (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeConfig/CheckEmployee',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据多个员工GUID和参保类型，校验员工是否能同时设置参保信息(单条)
  static CheckEmployeeSet (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeConfig/CheckEmployeeSet',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 根据条件获取福利【五险一金-员工】基数比例参数配置
  static getList (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeConfig/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除员工参保基数配置信息
  static delete (params) {
    return axios.request({
      url: '/SysWelfarePercentEmployeeConfig/Delete',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
